home *** CD-ROM | disk | FTP | other *** search
- global gBtnHitSND, gFTstartSND, gESstartSND, gPhotoSND, gTbarSND, gPopupSND, gFindSND, gTickSND, gPrepareSND, gAccessSND1, gWorkSND1, gIndexSND, gNopeSND, gWinVoiceEnabled, gModeState
-
- on hInitSNDnames
- set gBtnHitSND to the number of cast "EngShortBeep"
- set gFTstartSND to the number of cast "Multibeep"
- set gESstartSND to the number of cast "OneHiBeep"
- set gPhotoSND to the number of cast "multi-hit"
- set gTbarSND to the number of cast "ComChirp1"
- set gPopupSND to the number of cast "Cute Chirp"
- set gFindSND to the number of cast "chir-bloop"
- set gTickSND to the number of cast "Tweep"
- set gPrepareSND to the number of cast "EngSignalBeep"
- set gIndexSND to the number of cast "EngDblBeep"
- set gAccessSND1 to the number of cast "Accessing 1"
- set gWorkSND1 to the number of cast "Working 1"
- set gNopeSND to the number of cast "double beep"
- end
-
- on hearit pSNDnum
- if gModeState <> #TOPICS then
- repeat while soundBusy(0)
- end repeat
- end if
- puppetSound(cast value(pSNDnum))
- updateStage()
- repeat while soundBusy(0)
- end repeat
- end
-
- on hAnnounce pSNDname
- if gModeState <> #TOPICS then
- repeat while soundBusy(0)
- end repeat
- repeat while soundBusy(1)
- end repeat
- end if
- if gWinVoiceEnabled <> 1 then
- puppetSound(0)
- end if
- updateStage()
- if gWinVoiceEnabled <> 1 then
- puppetSound(pSNDname)
- end if
- puppetSound(pSNDname)
- updateStage()
- end
-
- on hSayProgress pWhat
- if pWhat = #ACC then
- set Lwhat to gAccessSND1 - 1
- hSysAlert(#ACCESSING)
- else
- if pWhat = #WOR then
- set Lwhat to gWorkSND1 - 1
- end if
- end if
- if gModeState <> #TOPICS then
- repeat while soundBusy(0)
- end repeat
- end if
- if (gModeState <> #EPISSUB) and (gModeState <> #EPIS) then
- hearit(Lwhat + random(5))
- end if
- end
-